package org.jeecg.modules.wxchar.service.impl;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wxchar.entity.NeedRelease;
import org.jeecg.modules.wxchar.mapper.NeedReleaseMapper;
import org.jeecg.modules.wxchar.service.INeedReleaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 供需发布情况
 * @Author: jeecg-boot
 * @Date:   2019-08-29
 * @Version: V1.0
 */
@Service
public class NeedReleaseServiceImpl extends ServiceImpl<NeedReleaseMapper, NeedRelease> implements INeedReleaseService {

    @Autowired
    private NeedReleaseMapper needReleaseMapper;

    public List<Map<String,Object>> groupByType(String username){
        return needReleaseMapper.groupByType(username);
    }


    public Integer scoreList(String username,String date){
        return needReleaseMapper.scoreList(username,date);
    }

    public List<NeedRelease> queryIndexShow(){
        return needReleaseMapper.queryIndexShow();
    }
}
